<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="/templates/layoutlogin.xhtml">
	<ui:define name="corpo">
		<div id="miolo">
			<h:form>
				<h:commandButton action="#{usuarioBean.novo}" value="Registre-se"  
					styleClass="css3button"/>
				
			</h:form>
			<div style="margin-bottom: 10px;"></div>
			<h:panelGroup rendered="#{!empty param.login_error}">
				<span style="color:red;">#{msg.txt_msg_erro}</span>
				<br />
				<br />
			
			</h:panelGroup>
			
			<form id="login" method="post"
				action="#{request.contextPath}/j_spring_security_check">
				<table>
					<tr>
						<td><span style="color:#808080;">Email</span></td>
						<td><input type='text' name='j_username' class="ml5" /></td>
					</tr>
										
					<tr>
						<td><span style="color:#808080;">Senha</span></td>
						<td><input type='password' name='j_password' class="ml5" /></td>
					</tr>
					<tr>
						<td align="right"><input type="checkbox"
							name="_spring_security_remember_me" /></td>
						<td><span class="ml5" style="color:#808080;">#{msg.manter_conectado}</span></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td><input type="submit" value="Entrar" class="css3button ml5"/></td>
					</tr>
					
				</table>
				
			</form>
			
		</div>
	</ui:define>
	<ui:define name="corpo1">
		<div id="miolo">
			<h:graphicImage library="imagens" name="logo_sge.png" style="width: 400px;"/>
			<div id="txt">
				<h:outputLabel value="#{msg.txt_merchandising}" style="font-size:14px;color:#808080;"/>
			</div>			
		</div>
	</ui:define>
</ui:composition>
</html>